import copy from './copy';
import longpress from './longpress';
import debounce from './debounce';
import permission from './permission';
import waterMarker from './watermark';
import draggable from './draggable';
import throttle from './throttle';
import clickOut from './clickOut';
import loading from './loading';
// 自定义指令
const directives = {
  copy,
  longpress,
  debounce,
  permission,
  waterMarker,
  draggable,
  throttle,
  clickOut,
  loading
};

export default {
  install(Vue) {
    Object.keys(directives).forEach(key => {
      Vue.directive(key, directives[key]);
    });
  }
};
